POV-Ray : Newsgroups : povray.binaries.images : Not a trefoil... : Not a trefoil... Server Time
4 Nov 2024 20:16:10 EST (-0500)
  Not a trefoil...  
From: Bill Pragnell
Date: 2 Feb 2006 06:05:01
Message: <web.43e1e6f529cf83d1731f01d10@news.povray.org>
Mornin' all.
Here's a new knot. I've spent a bit of time generalising my code so I can
instantiate one of several different types; this is the second. It's ~2.5
times longer than a trefoil loop, which made parsing time jump up again
(>45 mins), so I've also changed the way the path is calculated.

Instead of integrating the knot lengths on the fly, now I have a separate
..pov file which outputs data files of angles for equally-spaced brick
layers and stairs. The main code simply reads these values to transform the
bricks and build the staircases. The advantage here is that most of the
parse time was due to the slow length-finding necessary for spacing
components out (over a billion tokens parsed per render!), which now only
needs to be done once per knot type. Lighting, camera and texturing tests
parse in a mere 12 minutes or so.

Nit pick: although I thought I sorted out the misalignment of adjacent brick
layers, it is still visible in two places in this knot. I think this is due
to the high rates of change of curvature (not just high curvature) in these
sections... more thinking necessary!

As an aside, I'm thinking of making the staircases less regular - i.e. only
one 'up' direction (which will probably halve my parse time, too), and have
gaps with annular gantries and platforms (maybe doorways and windows, too).
This may prove difficult...

anyway, enjoy!
Bill


Post a reply to this message


Attachments:
Download 'figureeight1.jpg' (225 KB)

Preview of image 'figureeight1.jpg'
figureeight1.jpg


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.